package com.shuiyun.chat.config;

import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author shuiyun
 * @program chatServer
 * @description 日志配置类
 * @create 2021-05-12 18:08
 **/
@Configuration
public class LoggingHandlerConfig {

    @Bean
    public LoggingHandler getLoggingHandler(){
        return new LoggingHandler(LogLevel.DEBUG);
    }
}
